'use strict';
var React = require('react-native');
var shareManager = React.NativeModules.ShareManager;
class ShareManager {

    constructor() {
    }

    sharePic(path) {
        return new Promise((fulfill, reject) => {
            shareManager.sharePic(path, (error) => {
                if (error) {
                    reject(error);
                } else {
                    fulfill();
                }
            });
        });
    }


}

module.exports = new ShareManager();